package sz.com.postoffice.jxyzwgcase.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
/**
 * @ClassName Enterprise
 * @Deacription Enterprise前端输入字段表
 * @Author jmx
 * @Date 2020/11/19 17:52
 * @Version 1.0
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Enterprise implements Serializable {
    private static final long serialVersionUID = 7964212499768418586L;

    public Enterprise(CustomerModel customerModel) {
        id = customerModel.getId();
        code = customerModel.getSenderNo();
        name = customerModel.getSender();
        contractName = customerModel.getContractName();
        contractExpirationTime = customerModel.getContractExpirationTime();
        customerMaintainerName = customerModel.getCustomerMaintainerName();
        customerMaintainerNo = customerModel.getCustomerMaintainerNo();
        contractExpirationTime = customerModel.getContractExpirationTime();
        address = customerModel.getSenderAddr();
        keyMarketCode = customerModel.getKeyMarketCode();
        keyMarketName = customerModel.getKeyMarketName();
        longitude = customerModel.getLocationLongitude();
        latitude = customerModel.getLocationLatitude();
        createUser = customerModel.getCreateUser();
        modifyUser = customerModel.getModifyUser();
        empPosition = customerModel.getEmpPosition();
        customerEmail = customerModel.getCustomerEmail();
    }

    private Integer id;

    @ApiModelProperty("地市名称")
    private String cityName;

    @ApiModelProperty("地市编码")
    private String cityCode;

    @ApiModelProperty("区县编码")
    private String districtCode;

    @ApiModelProperty("区县名称")
    private String districtName;

    @ApiModelProperty("营业部编码")
    private String gridCode;

    @ApiModelProperty("营业部名称")
    private String gridName;

    @ApiModelProperty("编码")
    private String code;

    @ApiModelProperty("企业名称")
    private String name;

    @ApiModelProperty("企业地址")
    private String address;

    @ApiModelProperty("经度")
    private String longitude;
    @ApiModelProperty("纬度")
    private String latitude;
    @ApiModelProperty("企业类型0/1")
    private String type;

    @ApiModelProperty("合同名")
    private String contractName;
    @ApiModelProperty("合同到期时间")
    private Date contractExpirationTime;
    @ApiModelProperty("重点市场code")
    private String keyMarketCode;
    @ApiModelProperty("重点市场名称")
    private String keyMarketName;
    @ApiModelProperty("客户维护人姓名")
    private String customerMaintainerName;
    @ApiModelProperty("客户维护人工号")
    private String customerMaintainerNo;
    @ApiModelProperty("职位")
    private String empPosition;
    @ApiModelProperty("客户邮箱")
    private String customerEmail;

    @ApiModelProperty("全路径")
    private String allParentCode;

    @ApiModelProperty("创建用户")
    private String createUser;

    @ApiModelProperty("修改用户")
    private String modifyUser;
}
